package kuzha.ast;

public class RangeListLiteral extends ListLiteral {
	public final Expression start, end, step;

	public RangeListLiteral(Expression start, Expression end, Expression step) {
		if (start == null || step == null)
			throw new IllegalArgumentException();
		this.start = start;
		this.end = end;
		this.step = step;
	}
	
	@Override
	public void accept(AstVisitor visitor) {
		visitor.visit(this);
	}
	@Override
	public <A, R> R accept(AstVisitor2<A, R> visitor, A object) {
		return visitor.visit(this, object);
	}
}
